import React from 'react'
import {DataTable} from 'primereact/datatable'
import {Column} from 'primereact/column'

class ActionsData extends React.Component{
  constructor(){
    super()

    this.state={
      assets:[
        {time: '1', action: '2', param:'3', transferId:'4'},
        {time: '1', action: '2', param:'3', transferId:'4'},
        {time: '1', action: '2', param:'3', transferId:'4'},
        {time: '1', action: '2', param:'3', transferId:'4'},
        {time: '1', action: '2', param:'3', transferId:'4'},
      ]
    }
  }

  render(){
    return (
      <DataTable value={this.state.assets}>
        <Column field="time" header="时间" />
        <Column field="action" header="操作" />
        <Column field="param" header="参数" />
        <Column field="transferId" header="交易ID" />
      </DataTable>
    )
  }
}

class Actions extends React.Component{
  render(){
    return (
      <ActionsData />
    )
  }
}

export default Actions